<html>
 <?php include_once("core/header.php"); ?>
<body>

<?php

include_once("core/database.php");

$person = "";

if( is_numeric($_GET['id']) )
{
 $id = htmlentities($_GET['id'],ENT_QUOTES);
 $person = db_find_person_by_id($id);
}
?>

<div id="header" align="center">
 <div id="header-container">
  <img id="logo" src="image/logo.png" />
  <div id="menu">
   <?php include_once("view/view_form_search.php"); ?>
  </div>
  <a href="register.php"><img id="register" src="image/register.png"/></a>
 </div>
</div>

<div id="content" align="center">
 <div id="content-container">
  <?php if(empty($person)): ?>
   <p>dados inválidos</p>
  <?php else: ?>
   <?php print_r($person); ?>
  <?php endif; ?>
 </div>
</div>


</body>
</html>
